import React, { Component } from 'react'
import { connect } from 'react-redux'
import handleChange from 'MIXIN/handleChange'
// import api from 'UTIL/api.js'
import './index.less'

@connect( // 功能同 UTIL/createContainer
  ({ userData }) => ({ userData }),
  require('ACTION/user').default
)
export default class Index extends Component {
  constructor(props) {
    super(props)
    this.state = {
    }
    this.handleChange = handleChange.bind(this)
  }
  // 测试对象扩展运算符
  // componentDidMount() {
  //   var a = {name: 'a', value: 1, type: 'normal'}
  //   var apro = {...a, type: 'pro'}
  //   console.log(a)
  //   console.log(apro)
  // }
  render () {
    return <div className="tederen-index">
      <img src={require('ASSET/img/logo.png')}/>
    </div>
  }
}

